package com.tiancikeji.zaoke.app.dao.order;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.tiancikeji.zaoke.app.model.order.Order;
import com.tiancikeji.zaoke.app.model.order.OrderFood;

public interface OrderDao {

	public boolean updateOrderState(int stateCancel, Order order);

	public Order getOrderById(long orderid);

	public List<Order> getOrderByUserId(long userId);

	public Map<Long, List<OrderFood>> getOrderFoodByOrderIds(Set<Long> orderids);

	public long genTodayId(String date, long zoneId);

	public boolean addOrder(Order order);

	public boolean addFoods(List<OrderFood> foods);

	public boolean updateOrderState(int statePaid, long orderId);

}
